Learn R Programming

gp (version 1.1)

Cumulative probability mass of the generalized Poisson distribution: Cumulative probability mass of the generalized Poisson distribution

Description

Cumulative probability mass of the generalized Poisson distribution.

Usage

pgp(y, theta, lambda)

Value

A vector with the probabilities.

Arguments

y

A vector with non negative integer values.

theta

The value of the \(\theta\) parameter.

lambda

The value of the \(\lambda\) parameter.

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

The cumulative probability mass of the generealized Poisson distribution is computed.

References

Nikoloulopoulos A.K. & Karlis D. (2008). On modeling count data: a comparison of some well-known discrete distributions. Journal of Statistical Computation and Simulation, 78(3): 437--457.

Demirtas H. (2017). On accurate and precise generation of generalized Poisson variates. Communications in Statistics - Simulation and Computation, 46(1): 489--499.

See Also

dgp, rgp

Examples

Run this code
y <-  rgp(1000, 10, 0.5, method = "Inversion")
a <- gp.mle(y)
pgp(y[1:10], a[1], a[2])

Run the code above in your browser using DataLab